h3 {
    text-align: center;
    padding: 15px;
}
.mainBox2 {
    position: relative;
    padding: 20px;
    transition: 0.5s;
}

.mainBox2 p {
    text-align: center;
    margin: 0;
    padding: 8% 0 0 0;
    font-size: large;
}

.mainBox2:hover {
    box-shadow: 0 0 10px 5px #eee;
}

.mainBox2:hover p {
    color: #ef4136;
}

.mainBox2 img {
    width: 100%;
    height: 240px;
    transition: 0.4s;
}

.mainBox2:hover img {
    transform: scale(1.03);
}
